package com.sz.jinzheng.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 工作人员审核表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StaffExmination {
    private Integer id;
    /**
     * 工作人员id
     */
    private Integer staffMemberId;
    /**
     * 任务id
     */
    private Integer taskId;
    /**
     * 状态(审批结果) 0待审批 1通过 不通过-1
     */
    private Integer status;
    private String createTime;
    private Integer isDeleted;
    /**
     * 材料真实性评分
     */
    private Integer materialAuthenticityScore;
    /**
     * 申请者评价评分
     */
    private Integer applicantEvaluation;
    /**
     * 总评分就是评分的总和
     */
    private Integer generalComments;
    /**
     * 审批意见
     */
    private String approvalComments;
    /**
     * 第几次审批
     */
    private Integer examinationNum;
    /**
     * 贷款金额 返回前端
     */
    private double amount;
    /**
     * 申请人姓名 返回前端
     */
    private String name;
    /**
     * 分期期数返回前端
     */
    private Integer num;

    /**
     * borrowerInfoId 就是申请记录id
     */
    private Integer borrowerInfoId;
    public StaffExmination(Integer staffMemberId, Integer taskId, Integer examinationNum) {
        this.staffMemberId = staffMemberId;
        this.taskId = taskId;
        this.examinationNum = examinationNum;
    }

    //发放专员发放用
    public StaffExmination(Integer staffMemberId, Integer taskId) {
        this.staffMemberId = staffMemberId;
        this.taskId = taskId;
    }

    public StaffExmination(Integer id, String approvalComments) {
        this.id = id;
        this.approvalComments = approvalComments;
    }
}
